<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>京城男人帮---首页</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/head.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/index.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/footer.css"/>
	<script src="__PUBLIC__/home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(function(){
			//轮播图效果
			var c = 0;
			//加一个时间事件
			function timer(){
			    //获得序号
			    c++;
			    if(c==6){
			    	c=0;
			    }
                //alert(c);
			    //让自己显示，兄弟元素隐藏
			    $("#inBaner .big_eye_pic li").eq(c).stop().fadeIn(1800).siblings().fadeOut(800);
			    //改变颜色
			    $("#inBaner .btn ul li").eq(c).stop().addClass("cur").siblings().removeClass("cur");
			}
			time = setInterval(timer,2000);
			//给图片添加一个移入移出效果
			$("#inBaner").hover(function(){
				//停止时间
				clearInterval(time);
			},function(){
				//时间继续
				time = setInterval(timer,2000);
			});
			//给色块添加一个移入移出事件
			$("#inBaner .btn ul li").mouseenter(function(){
				var n = $(this).index();
				//让第一个人图片显示 其余的隐藏
				$("#inBaner .big_eye_pic li").eq(n).stop().show().siblings().hide();
				//改变颜色
				$("#inBaner .btn ul li").eq(n).stop().addClass("cur").siblings().removeClass("cur");
			});
			//添加一个点击事件
			$(".her_top .her_title .her_menu li").click(function(){
				var n = $(this).index();
				//切换颜色
				$(".her_menu li").eq(n).addClass("current").siblings().removeClass("current");
				//切换商品
				$(".her_top .pro_con").eq(n).show().siblings(".pro_con").hide();
			})
			//搜索框下滑
			$(window).scroll(function(){
				//获得滚动条距离顶部距离
				var t = $(document).scrollTop();
				    document.title = t;
				    if(t>530){
				    	$("#nav").show();
				    }else{
				    	$("#nav").hide();
				    }
			});
		});
	</script>
    <script type="text/javascript">
        function over(){
            var div = document.getElementById('alltype');//获取大div对象
            var text = document.getElementById('indextype');//获取文字div对象
            text.style.display="block";
        }//鼠标进入显示文字
        function out(){
            var div = document.getElementById('alltype');
            var text = document.getElementById('indextype');
            text.style.display="none";
        }//鼠标退出不显示文字
    </script>
</head>
<body>
    <!--顶部公用-->
	{include file="public/top"}
    <!--头部end-->

    <!--轮播区域-->
    <div class="full_big_eye">
        <!-- 菜单 -->
        {include file="public/all_type"}
        <!-- 菜单 -->
        <!--轮播图-->
        <div class="full_eye">
        	<div id="inBaner">
        		<ul class="big_eye_pic">
					<?php if (!empty($adverdata)){ ?>
					<?php foreach($adverdata as $v){?>
					<li style="display: block;">
						<a href="{:url('home/index/brandshoplist')}?b_id=<?=$v['b_id']?>" class="img_box">
							<img src="__PUBLIC__/<?=$v['b_photo']?>" width="1820"/>
						</a>
					</li>
					<?php } ?>
					<?php } ?>
        		</ul>
                <!-- 轮播对应文字 -->
        		<div class="btn">
        		    <ul>
        		    	<li class="cur"></li>
        		    	<li></li>
        		    	<li></li>
        		    	<li></li>
        		    	<li></li>
        		    </ul>
        		</div>
        	</div>
        </div>
        <!--轮播图-->
    </div>
    <!--轮播区域-->
    <!--商品区-->
    <div class="w1200">
    	<div class="her_top">
    		<div class="her_title">
    			<ul class="her_menu">
    				<li class="current">
    					<i class="today_zb_icon"></i>
    					精选服饰
    					<i class="jx_icon_down"></i>
    				</li>
    				<!-- <li>
    					<i class="yesto_icon"></i>
    					限时抢购
    					<i class="jx_icon_down"></i>
    				</li> -->
    			</ul>
    		</div>
    	    <div class="pro_con" style="display: block;">
    	    	<div class="P_left">
    	    		<div class="groDiv">
    	    			<div style="position: relative;overflow: hidden;">
    	    				<ul class="groUlOut">
                            <?php if (!empty($goodsDataRm)){ ?>
                            <?php foreach ($goodsDataRm as $key => $value){ ?>
    	    					<li style="float: left;width: 224px;">
    	    						<div class="x">精选服饰</div>
    	    						<a href="{:url('home/shop/iemt')}?c_id=<?php echo $value['c_id'] ?>&g_id=<?php echo $value['g_id'] ?>" class="pro">
    	    							<img src="__PUBLIC__/<?php echo $value['g_img'] ?>"/>
    	    						</a>
    	    						<p class="box_glay">
    	    							<a href="{:url('home/shop/iemt')}?c_id=<?php echo $value['c_id'] ?>&g_id=<?php echo $value['g_id'] ?>" class="pro_text">
    	    								<span><?php echo $value['g_name'] ?></span>
    	    							</a>
    	    						</p>
    	    						<p class="p_num">
    	    							No.<?php echo $value['g_id'] ?>
    	    						</p>
    	    						<div class="now_price">
    	    							<div class="price">
    	    								<span class="bigfont">
    	    									<span class="f_14">￥</span><span><?php echo $value['g_price'] ?></span>
    	    								</span>
    	    								<!-- <span><del>￥2100.00</del></span>
    	    								<div class="zk">4.8折</div> -->
    	    							</div>
    	    						</div>
    	    					</li>
                            <?php } ?>
                            <?php } ?>
    	    				</ul>
    	    			</div>
    	    		</div>
    	    	</div>
    	    </div>
    	</div>

        <div class="ver_box">
            <ul class="qinha_ul ClearFix"></ul>
        </div>

        <div class="day_box">
        	<div class="qinha_title">
        		<div class="v_h2">
        			<p class="h2_top">今日发现</p>
                    <p class="h2_bottom">精致好物 更快乐的生活</p>
        		</div>
        	</div>
        	<ul class="day_goods">
            <?php if (!empty($goodsDataFx)){ ?>
            <?php foreach ($goodsDataFx as $key => $value){ ?>
        		<li>
        			<a href="{:url('home/shop/iemt')}?c_id=<?php echo $value['c_id'] ?>&g_id=<?php echo $value['g_id'] ?>" class="a_con_list">
        				<p class="p_img"><img src="__PUBLIC__/<?php echo $value['g_img'] ?>"/></p>
        			</a>
        			<p class="p_title">
        				<!-- <span>【7.5折】</span> -->
                        <?php echo $value['g_name'] ?>
        			</p>
        			<p class="p_p">
        				<span class="price1">￥<span>298.00</span></span>
        				<!-- <span class="price2"><del>￥398.00</del></span> -->
        				<!-- <a href="{:url('home/shop/iemt')}" class="gwc"></a> -->
        			</p>
        		</li>
            <?php } ?>
            <?php } ?>
        	</ul>
        </div>
        <!--第四区-->
    </div>
    <!--商品区-->
    <!--下拉搜索-->
    <div id="nav" class="search_fixed">
    	<div class="w1200">
    		<div class="s_fixed_l"><img src="__PUBLIC__/home/image/logo.png"  style="width: 70px;height: 45px;padding-left: 30px;"/></div>
    		<div class="s_fixed_r">
    			<form action="{:url('home/shop/shop_list')}" method="post">
                    <input placeholder="lumi 胶原蛋白" autocomplete="off" class="txt_f_sb" name="keyword" type="text">
                    <input value="搜索" class="f_btn_search" style="cursor:pointer" type="submit">
    			</form>
    		</div>
    	</div>
    </div>
    <!--下拉搜索end-->

    <!--底部公用-->
    {include file="public/footer"}
    <!--底部end-->
    <!--左侧导航-->
    {include file="public/left"}
    <!--左侧导航-->
</body>
</html>
